package cn.mw.cmdb.virtualization.enums;

/**
 * @description 网络类型枚举
 */
public enum UniCloudVsWitchForwardingModelType {
    VEB("0","VEB"),
    VEPA("1","VEPA"),
    MANY_PASSAGEWAY("2","多通道"),
    ;


    private String type;

    private String value;

    UniCloudVsWitchForwardingModelType(String type, String value) {
        this.type = type;
        this.value = value;
    }

    public String getType() {
        return type;
    }

    public String getValue() {
        return value;
    }

    public static UniCloudVsWitchForwardingModelType forwardingModelType(String dataType) {
        for (UniCloudVsWitchForwardingModelType forwardingModelType : values()) {
            if (dataType.equals(forwardingModelType.getType())) {
                return forwardingModelType;
            }
        }
        return null;
    }
}
